home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ IUnknown File.xpl < prev    next >
Text File  |  1999-06-12  |  2KB  |  53 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Explorer\Files"
  5. "NAME"="Unknown File Extension Command"
  6. "VERSION"="1.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Command"
  9. "DESCRIPTION 1"="Normally, Windows displays a dialog if you double-click a file with an unknown extension (for example TEXT.XXX)."
  10. "DESCRIPTION 2"="With this setting, you can specify a program that should be used for EVERY unknown file."
  11. "DESCRIPTION 3"="A common command for this is NOTEPAD "%1" which means all unknown files are opened with Notepad. The current filename is inserted where Windows finds "%1"."
  12. "DESCRIPTION 4"="To deactivate this setting, clear the Command field and click Apply."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18. 'HKLM\Software\Classes\Unknown\Shell\Open\Command
  19. sP="HKCR\Unknown\Shell\Open\Command\@"
  20. sP_r1="HKCR\Unknown\Shell\Open\Command"
  21. sP_r2="HKCR\Unknown\Shell\Open"
  22. Sub Plugin_Initialize 
  23.  s=RegReadValue(sp)
  24.  Call SetUIElement(1,s)
  25.  
  26.  'Disable
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  s=GetUIElement(1)
  34.  
  35.  if len(s)=0 then
  36.   'Remove
  37.  
  38.   e=RegReadValue(sP)
  39.   if IsEmpty(e)=false then
  40.    Call RegDeleteValue(sP)
  41.    Call RegDeletePath(sP_r1)
  42.    Call RegDeletePath(sP_r2)
  43.   end if
  44.  
  45.  else
  46.   'Add
  47.   Call RegWriteValue(sP,s,1)
  48.  end if
  49. End Sub
  50.  
  51. Sub Plugin_Terminate 
  52. End Sub
  53.